<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="CampoEstudioEditDlg" widgetVar="CampoEstudioEditDialog" modal="true" resizable="false" appendTo="@(body)" header="#{bundle.EditCampoEstudioTitle}">
            <h:form id="CampoEstudioEditForm">
                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{campoEstudioController.selected != null}">
                        <p:outputLabel value="#{bundle.EditCampoEstudioLabel_idCampoEstudio}" for="idCampoEstudio" />
                        <p:inputText id="idCampoEstudio" value="#{campoEstudioController.selected.idCampoEstudio}" title="#{bundle.EditCampoEstudioTitle_idCampoEstudio}" required="true" requiredMessage="#{bundle.EditCampoEstudioRequiredMessage_idCampoEstudio}"/>
                        <p:outputLabel value="#{bundle.EditCampoEstudioLabel_nombre}" for="nombre" />
                        <p:inputText id="nombre" value="#{campoEstudioController.selected.nombre}" title="#{bundle.EditCampoEstudioTitle_nombre}" />
                    </p:panelGrid>
                    <p:commandButton actionListener="#{campoEstudioController.update}" value="#{bundle.Save}" update="display,:CampoEstudioListForm:datalist,:growl" oncomplete="handleSubmit(args, 'CampoEstudioEditDialog');"/>
                    <p:commandButton value="#{bundle.Cancel}" onclick="CampoEstudioEditDialog.hide()"/>
                </h:panelGroup>
            </h:form>
        </p:dialog>

    </ui:composition>
</html>
